//
//  MediaStreamSettingOptions.m
//  ivcs_ios_demo
//
//  Created by zealcomm user on 2020/10/21.
//  Copyright © 2020 zealcomm user. All rights reserved.
//

#import "MediaStreamSettingOptions.h"
#import <IRTC/IRTC.h>

@implementation MediaStreamSettingOptions

-(id)copyWithZone:(NSZone *)zone{
    MediaStreamSettingOptions *options = [[[self class] allocWithZone:zone] init];
    IRTCStreamConstraints *constraints = [[IRTCStreamConstraints alloc] init];
    constraints.audio = self.streamConstraints.audio;
    constraints.video = self.streamConstraints.video;
    options.streamConstraints = constraints;
    IRTCPublishOptions *publishOptions = [[IRTCPublishOptions alloc] init];
    publishOptions.audio = self.publishOptions.audio;
    publishOptions.video = self.publishOptions.video;
    options.publishOptions = publishOptions;
    return options;
}

@end
